import yaml

def read_yaml(file_name):
    file = open(file=file_name, mode='rb')
    data = yaml.load(file, Loader=yaml.SafeLoader)
    return data
